package com.proba.annotations.hibernate;

import java.sql.Timestamp;
import java.util.List;

import org.hibernate.criterion.Restrictions;

import com.proba.annotations.IsporacMaterObjektiDAO;
import com.proba.annotations.pojo.IsporacMaterObjekti;

/**
 * <p>Hibernate DAO layer for IsporacMaterObjektis</p>
 * <p>Generated at Thu Feb 25 19:39:57 CET 2010</p>
 *
 * @author Salto-db Generator v1.0.16 / EJB3 + Hibernate DAO
 * @see http://www.hibernate.org/328.html
 */
public class IsporacMaterObjektiHibernateDAO extends
		AbstractHibernateDAO<IsporacMaterObjekti, Long> implements
		IsporacMaterObjektiDAO {

	/**
	 * Find IsporacMaterObjekti by id
	 */
	public List<IsporacMaterObjekti> findById(Long id) {
		return findByCriteria(Restrictions.eq("id", id));
	}
	
	/**
	 * Find IsporacMaterObjekti by datum
	 */
	public List<IsporacMaterObjekti> findByDatum(Timestamp datum) {
		return findByCriteria(Restrictions.eq("datum", datum));
	}
	
	/**
	 * Find IsporacMaterObjekti by proizvodenPogon
	 */
	public List<IsporacMaterObjekti> findByProizvodenPogon(Long proizvodenPogon) {
		return findByCriteria(Restrictions.eq("proizvodenPogon", proizvodenPogon));
	}
	
	/**
	 * Find IsporacMaterObjekti by tipProizvodenPogon
	 */
	public List<IsporacMaterObjekti> findByTipProizvodenPogon(Long tipProizvodenPogon) {
		return findByCriteria(Restrictions.eq("tipProizvodenPogon", tipProizvodenPogon));
	}
	
	/**
	 * Find IsporacMaterObjekti by partner
	 */
	public List<IsporacMaterObjekti> findByPartner(Long partner) {
		return findByCriteria(Restrictions.eq("partner", partner));
	}
	
	/**
	 * Find IsporacMaterObjekti by tipPartner
	 */
	public List<IsporacMaterObjekti> findByTipPartner(Long tipPartner) {
		return findByCriteria(Restrictions.eq("tipPartner", tipPartner));
	}
	
	/**
	 * Find IsporacMaterObjekti by edinicaMerka
	 */
	public List<IsporacMaterObjekti> findByEdinicaMerka(Long edinicaMerka) {
		return findByCriteria(Restrictions.eq("edinicaMerka", edinicaMerka));
	}
	
	/**
	 * Find IsporacMaterObjekti by gotovProizvod
	 */
	public List<IsporacMaterObjekti> findByGotovProizvod(Long gotovProizvod) {
		return findByCriteria(Restrictions.eq("gotovProizvod", gotovProizvod));
	}
	
	/**
	 * Find IsporacMaterObjekti by tipGotovProizvod
	 */
	public List<IsporacMaterObjekti> findByTipGotovProizvod(Long tipGotovProizvod) {
		return findByCriteria(Restrictions.eq("tipGotovProizvod", tipGotovProizvod));
	}
	
	/**
	 * Find IsporacMaterObjekti by sluzba
	 */
	public List<IsporacMaterObjekti> findBySluzba(String sluzba) {
		return findByCriteria(Restrictions.eq("sluzba", sluzba));
	}
	
	/**
	 * Find IsporacMaterObjekti by eksternaRealKolicina
	 */
	public List<IsporacMaterObjekti> findByEksternaRealKolicina(Double eksternaRealKolicina) {
		return findByCriteria(Restrictions.eq("eksternaRealKolicina", eksternaRealKolicina));
	}
	
	/**
	 * Find IsporacMaterObjekti by eksternaRealIznosDen
	 */
	public List<IsporacMaterObjekti> findByEksternaRealIznosDen(Double eksternaRealIznosDen) {
		return findByCriteria(Restrictions.eq("eksternaRealIznosDen", eksternaRealIznosDen));
	}
	
	/**
	 * Find IsporacMaterObjekti by internaRealKolicina
	 */
	public List<IsporacMaterObjekti> findByInternaRealKolicina(Double internaRealKolicina) {
		return findByCriteria(Restrictions.eq("internaRealKolicina", internaRealKolicina));
	}
	
	/**
	 * Find IsporacMaterObjekti by internaRealIznosDen
	 */
	public List<IsporacMaterObjekti> findByInternaRealIznosDen(Double internaRealIznosDen) {
		return findByCriteria(Restrictions.eq("internaRealIznosDen", internaRealIznosDen));
	}
	
	/**
	 * Find IsporacMaterObjekti by zaSopstvenoRealKolicina
	 */
	public List<IsporacMaterObjekti> findByZaSopstvenoRealKolicina(Double zaSopstvenoRealKolicina) {
		return findByCriteria(Restrictions.eq("zaSopstvenoRealKolicina", zaSopstvenoRealKolicina));
	}
	
	/**
	 * Find IsporacMaterObjekti by zaSopstvenoRealIznosDen
	 */
	public List<IsporacMaterObjekti> findByZaSopstvenoRealIznosDen(Double zaSopstvenoRealIznosDen) {
		return findByCriteria(Restrictions.eq("zaSopstvenoRealIznosDen", zaSopstvenoRealIznosDen));
	}
	
	/**
	 * Find IsporacMaterObjekti by sevkupnoKolicini
	 */
	public List<IsporacMaterObjekti> findBySevkupnoKolicini(Long sevkupnoKolicini) {
		return findByCriteria(Restrictions.eq("sevkupnoKolicini", sevkupnoKolicini));
	}
	
	/**
	 * Find IsporacMaterObjekti by sevkupnoRealizacVoDen
	 */
	public List<IsporacMaterObjekti> findBySevkupnoRealizacVoDen(Long sevkupnoRealizacVoDen) {
		return findByCriteria(Restrictions.eq("sevkupnoRealizacVoDen", sevkupnoRealizacVoDen));
	}
	

}
